import $ from "@/utils/requset"

// 登录接口
const login = (data) => {
    return $({
        url: "/login",
        method: "post",
        data
    })
}


// 主页导航栏数据
const category = () => {
    return $({
        url: "/home/category/head",
        method: "get",
    })
}

//茶咖酒具
const CategoryOneViewslist = (params) => {
    return $({
        url: "/category",
        method: "GET",
        params
    })
}




// 主页banner数据
const banner = () => {
    return $({
        url: "/home/banner",
        method: "get",
    })
}

// 主页新鲜好物数据
const news = () => {
    return $({
        url: "/home/new",
        method: "get",
    })
}


// 主页人气推荐数据
const hots = () => {
    return $({
        url: "/home/hot",
        method: "get",
    })
}

// 主页热门品牌数据
const brand = () => {
    return $({
        url: "home/brand",
        method: "get",
    })
}

// 主页小模块数据
const goods = () => {
    return $({
        url: "home/goods",
        method: "get",
    })
}



// 主页最新专题数据
const special = () => {
    return $({
        url: "home/special",
        method: "get",
    })
}


export default {
    login,
    CategoryOneViewslist,
    category,
    banner,
    news,
    hots,
    brand,
    goods,
    special
}